//
//  UIColor+Rule.m
//  YCVillageDoctor
//
//  Created by Mac on 2017/6/7.
//  Copyright © 2017年 zhangxiaoliang. All rights reserved.
//

#import "UIColor+Rule.h"
#import "UIColor+Extension.h"

@implementation UIColor (Rule)



+(UIColor *)colorWithCommonType:(CommonViewColor)type{
    switch (type) {
        case CommonColorBlue:
        {
            return [UIColor colorWithRGBValue:0x3a79ea];
        }
            break;
        case CommonColorRed:
        {
            return [UIColor colorWithRGBValue:0xfe0101];
        }
            break;
        case CommonColorGreen:
        {
            return [UIColor colorWithRGBValue:0x4db000];
        }
            break;
        case CommonColorOrange:
        {
            return [UIColor colorWithRGBValue:0xff7e00];
        }
            break;
        case CommonColorSubFCGray:
        {
            return [UIColor colorWithRed:245.0/255.0 green:247/255.0 blue:249/255.0 alpha:1];
        }
            break;
        case CommonColorSeparate:
        {
            return [UIColor colorWithRGBValue:0xe2e2e2];
        }
            break;
        case commonColorBlue:
        {
            return [UIColor colorWithRGBValue:0x46CBFC];
        }
            break;
    }
    
}

@end
